﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="list.aspx.cs" Inherits="He.Web.manage.channel.list" %>
<%@ Register Src="../_uc/head_list.ascx" TagPrefix="uc" TagName="head_list" %>
<%@ Register Src="../_uc/head.ascx" TagPrefix="uc" TagName="head" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title>频道列表</title>
    <uc:head runat="server" ID="uchead" />
    <uc:head_list runat="server" ID="uchead_list" />
    <style type="text/css">
.required {
	height: 19px;
}
</style>
    </head>
    <body style="padding: 10px;">
    <form id="form1" runat="server">
      <div class="navigation"> <span class="add"><a href='edit.aspx?lang=<%=lang %>'>增加频道</a></span> <b>您当前的位置：首页 &gt;
        频道管理&gt;频道列表</b> </div>
      <div class="spClear"> </div>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="50" align="center"> 请选择： </td>
          <td><asp:DropDownList ID="ddlLang" runat="server" CssClass="select" AutoPostBack="true"
                    OnSelectedIndexChanged="ddlLang_SelectedIndexChanged" Enabled="false"> </asp:DropDownList>
            <asp:DropDownList ID="ddlProperty" runat="server" CssClass="select" OnSelectedIndexChanged="ddlProperty_SelectedIndexChanged"
                    AutoPostBack="True">
              <asp:ListItem Value="">所有属性</asp:ListItem>
              <asp:ListItem Value="un_lock">显示</asp:ListItem>
              <asp:ListItem Value="is_lock">隐藏</asp:ListItem>
            </asp:DropDownList></td>
          <td width="50" align="right"> 关健字： </td>
          <td width="150"><asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword"></asp:TextBox></td>
          <td width="60" align="center"><asp:Button ID="btnSelect" runat="server" Text="查询" CssClass="submit" OnClick="btnSelect_Click" /></td>
        </tr>
      </table>
      <div class="spClear"> </div>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand">
          <HeaderTemplate>
            <tr>
              <th> 选择 </th>
              <th> 编号 </th>
              <th> 频道标题 </th>
              <th> 管理标题 </th>
              <th> 频道名称 </th>
              <th> 管理地址 </th>
              <th> 所属模型 </th>
              <th> 语言版本 </th>
              <th> 图片尺寸 </th>
              <th> 排序 </th>
              <th> <a href="list.aspx?lang=<%=lang %>&sort=islock">频道状态</a> </th>
              <th> 分类状态 </th>
              <th> 操作 </th>
            </tr>
          </HeaderTemplate>
          <ItemTemplate>
            <tr>
              <td><asp:CheckBox ID="Check" CssClass="checkall" runat="server"></asp:CheckBox></td>
              <td><asp:Label ID="lb_id" runat="server" Text='<%#Eval("id")%>'></asp:Label></td>
              <td><a href="edit.aspx?action=<%=He.Web.UI.Enums.ActionEnum.Edit %>&id=<%#Eval("id") %>&lang=<%=lang %>"> <%#Eval("title") %></a></td>
              <td><%#Eval("manage_title") %></td>
              <td><%#Eval("name") %></td>
              <td><%#Eval("manage_url") %></td>
              <td><%#(He.Web.UI.Enums.sys_model)Convert.ToInt32(Eval("model_id"))%></td>
              <td><%#He.Web.UI.LangHelper.GetLangVer(Eval("lang"))%></td>
              <td><%#Eval("img_width") %> × <%#Eval("img_height") %></td>
              <td><asp:TextBox ID="txtSortId" runat="server" Text='<%#Eval("sort_id")%>' CssClass="txtInput2 small2"
                            onkeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)));" /></td>
              <td><asp:ImageButton ID="ibtnLock" CommandName="ibtnLock" runat="server" ImageUrl='<%# Convert.ToInt32(Eval("is_lock")) == 1 ? "../images/disable.gif" : "../images/correct.gif"%>'
                            ToolTip='<%# Convert.ToInt32(Eval("is_lock")) == 1 ? "显示" : "隐藏"%>' /></td>
              <td><asp:ImageButton ID="ibtnShowCategory" CommandName="ibtnShowCategory" runat="server" ImageUrl='<%# Convert.ToInt32(Eval("show_category")) == 0 ? "../images/disable.gif" : "../images/correct.gif"%>'
                            ToolTip='<%# Convert.ToInt32(Eval("show_category")) == 0 ? "显示" : "隐藏"%>' /></td>
              <td><a href="../settings/category_list.aspx?channel_id=<%#Eval("id") %>">分类</a> <a href='edit.aspx?action=<%=He.Web.UI.Enums.ActionEnum.Edit %>&id=<%#Eval("id") %>&lang=<%=lang %>'> 修改</a></td>
            </tr>
          </ItemTemplate>
        </asp:Repeater>
      </table>
      <div class="spClear"> </div>
      <div style="line-height: 30px; height: 30px;">
        <div class="left"> <span class="btn_all" onclick="CheckAll(this)" style="display: none">全 选</span> <span class="btn_bg" style="display: none">
          <asp:LinkButton ID="lbtnDel" runat="server" OnClick="lbtnDel_Click" OnClientClick="return confirm( '在删除频道之前，请确认您已经删除了该频道下的所有内容，以免造成数据冗余，确定继续删除吗？ ');">删 除</asp:LinkButton>
          </span> <span class="btn_bg">
          <asp:LinkButton ID="lbtnSave" runat="server" OnClick="lbtnSave_Click">保存排序</asp:LinkButton>
          </span> </div>
      </div>
    </form>
</body>
</html>
